//
//  JLCFRootViewController.h
//  QTZ
//
//  Created by ski on 2017/8/1.
//  Copyright © 2017年 ski. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "JLCFNavigationBar.h"
#import "MBProgressHUD.h"
#import "JLCFErrorTipsView.h"


@interface JLCFRootViewController : UIViewController<JLCFErrorTipsViewDelegate>

@property (nonatomic, strong) JLCFNavigationBar *navigationBar;

@property (nonatomic, strong) MBProgressHUD *noticeView;

/**
 *  当前 ViewController 的 view 的 frame
 */
@property (nonatomic, assign) CGRect defaultFrame;

/**
 *  网络出错时显示的页面
 */
@property (nonatomic, strong) JLCFErrorTipsView *JLCFErrorTipsView;
//参数
@property (nonatomic, strong) NSDictionary          *extraParams;


- (void)clickback;

- (void)addNavigationBar;

//开启/关闭手势返回
- (void)openPopGestureRecognizer;

- (void)stopPopGestureRecognizer;

//自定义过渡
- (void)showCustomViewController:(JLCFRootViewController *)vc;

//网络不好的提示
- (void)showErrorTipsOnOwnerView:(UIView *)ownerView;
- (void)showErrorTips;
- (void)hideErrorTips;

// Notice
- (void)showNotice:(NSString *)notice;
- (void)showNoticeOnWindow:(NSString *)notice duration:(NSTimeInterval)duration;
- (void)showNotice:(NSString *)notice image:(UIImage *)image afterDelay:(CGFloat)delay;
- (void)showLoadingView:(UIImage *)image;
- (void)hideNotice;

@end
